package util;

public class StringUtil {
        public static String[] fengeStr(String x, String fgf){   //字符串分割,x需分割的字符串，fgf按照该字段分割
            String []Community_id = x.split(fgf);
            return Community_id;
        }
        public static void main(String [] args){
            String[] x = fengeStr("1,2,3,4,",",");
            for (int i = 0;i<x.length;i++)
            System.out.print(x[i]);
            String xx= "1,2,3,4,";

        }
}
